<?php
namespace app\shop\controller;
use think\Controller;
use think\request;
use think\Db;
class Common extends Controller{
	public function _initialize(){
		if(!session('user_id')){
			$redirect_uri="https://www.jfzhiwen.com/index/ali/getuser";
			$url="https://openauth.alipay.com/oauth2/publicAppAuthorize.htm?app_id=2018112662334699&scope=auth_user&redirect_uri=$redirect_uri";
			header("Location:".$url);
		}
	}	
}